/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.duty.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 值班管理Entity
 * @author johnKee
 * @version 2016-07-17
 */
public class ZlmtDutySheet extends DataEntity<ZlmtDutySheet> {
	
	private static final long serialVersionUID = 1L;
	private String sysUserId;		// 用户id
	private String sysUserName;		// 姓名
	private String mobilePhoneNum;		// 手机号
	private Date beginTime;		// 值班开始时间
	private Date thruTime;		// 值班结束时间
	private String sysRoleId;		// 岗位id
	private String sysRoleName;		// 岗位
	private String dutyNote;		// 值班记录
	private String uncommitNote;		// 交班记录
	private User user;  //用户信息
	private String dutyStatus;  //交接状态
	public ZlmtDutySheet() {
		super();
	}

	public ZlmtDutySheet(String id){
		super(id);
	}

	@Length(min=0, max=64, message="用户id长度必须介于 0 和 64 之间")
	public String getSysUserId() {
		return sysUserId;
	}

	public void setSysUserId(String sysUserId) {
		this.sysUserId = sysUserId;
	}
	
	@Length(min=0, max=128, message="姓名长度必须介于 0 和 128 之间")
	public String getSysUserName() {
		return sysUserName;
	}

	public void setSysUserName(String sysUserName) {
		this.sysUserName = sysUserName;
	}

	public String getMobilePhoneNum() {
		return mobilePhoneNum;
	}

	public void setMobilePhoneNum(String mobilePhoneNum) {
		this.mobilePhoneNum = mobilePhoneNum;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getThruTime() {
		return thruTime;
	}

	public void setThruTime(Date thruTime) {
		this.thruTime = thruTime;
	}
	
	@Length(min=0, max=64, message="岗位id长度必须介于 0 和 64 之间")
	public String getSysRoleId() {
		return sysRoleId;
	}

	public void setSysRoleId(String sysRoleId) {
		this.sysRoleId = sysRoleId;
	}
	
	@Length(min=0, max=128, message="岗位长度必须介于 0 和 128 之间")
	public String getSysRoleName() {
		return sysRoleName;
	}

	public void setSysRoleName(String sysRoleName) {
		this.sysRoleName = sysRoleName;
	}
	
	@Length(min=0, max=2000, message="值班记录长度必须介于 0 和 2000 之间")
	public String getDutyNote() {
		return dutyNote;
	}

	public void setDutyNote(String dutyNote) {
		this.dutyNote = dutyNote;
	}
	
	@Length(min=0, max=2000, message="交班记录长度必须介于 0 和 2000 之间")
	public String getUncommitNote() {
		return uncommitNote;
	}

	public void setUncommitNote(String uncommitNote) {
		this.uncommitNote = uncommitNote;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getDutyStatus() {
		return dutyStatus;
	}

	public void setDutyStatus(String dutyStatus) {
		this.dutyStatus = dutyStatus;
	}
}